//
//  NewsChannelController.h
//  NewsChannal
//
//  Created by chinabyte on 2017/7/18.
//  Copyright © 2017年 chinabyte. All rights reserved.
//

#import <UIKit/UIKit.h>
@class NewsChannelController;

@protocol NewsChannelControllerDelegate <NSObject>
@optional
//选中我的频道中的item
- (void)NewsChannelController:(NewsChannelController *)controller didSelectItemAtIndexPath:(NSIndexPath *)indexPath;
//我的频道中的items交换位置
- (void)NewsChannelController:(NewsChannelController *)controller moveItemAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath*)destinationIndexPath;
//添加频道推荐中的item
- (void)NewsChannelController:(NewsChannelController *)controller didAddItemAtIndexPath:(NSIndexPath *)indexPath;
//删除我的频道中的item
- (void)NewsChannelController:(NewsChannelController *)controller didDeleteItemAtIndexPath:(NSIndexPath *)indexPath;
//删除我的频道中的item
- (void)NewsChannelController:(NewsChannelController *)controller didDeleteItemAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath*)destinationIndexPath;
@end
@interface NewsChannelController : UIViewController
@property (nonatomic, weak) id<NewsChannelControllerDelegate> ttDelegate; // 对外暴露代理方法
@property (nonatomic, retain) NSArray *dataSource;
@property (nonatomic, assign) NSInteger currentIndex; // 当前索引
@end
